package com.unhz.generator.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author: 沈佳庆
 * @Description: 订单表
 * @Date: Created in 下午 6:53 2018/1/23 0023
 * @Modified By:
 */

public class Order implements Serializable{

    /**序号**/
    private Integer id;

    /**样品id**/
    private Integer sampleId;

    /**管理员id**/
    private Integer adminId;

    /**用户id**/
    private Integer userId;

    /**订单号**/
    private String orderNo;

    /**申请时间**/
    private Date applyTime;

    /**交期时间**/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryTime;

    /**加工工序**/
    private String process;

    /**中底品名**/
    private String tradeName;

    /**对外型号**/
    private String foreignModel;

    /**单价**/
    private Double unitPrice;

    /**制作工艺**/
    private String workmanship;

    /**合同价**/
    private Double contractPrice;

    /**鞋码类型**/
    private Integer sizeType;

    /**状态：0.禁用 1.启用 2.第一次出现启用的状态**/
    private Integer valid;

    /**状态：1.对接中 2.对接完成（合同待确认） 3.合同已确认**/
    private Integer status;

    /**业务状态：1.服务对接中 2.对接完成 3.合同确认**/
    private Integer businessStatus;

    /**修改订单时间**/
    private Date updateTime;

    /**修改人员**/
    private String updateBy;

    /**审核订单时间**/
    private Date checkTime;

    /**审核人员**/
    private String checkBy;

    /**尺码、数量**/
    private Map<String,Integer> map;

    /**试做订单**/
    private TryOrder tryOrder;

    /**中底信息**/
    private Insole insole;

    /**合同信息**/
    private List<Contract> contractList;

    /**排产订单**/
    private List<ProductionOrder> productionOrder;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSampleId() {
        return sampleId;
    }

    public void setSampleId(Integer sampleId) {
        this.sampleId = sampleId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getProcess() {
        return process;
    }

    public void setProcess(String process) {
        this.process = process;
    }

    public String getTradeName() {
        return tradeName;
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }

    public String getForeignModel() {
        return foreignModel;
    }

    public void setForeignModel(String foreignModel) {
        this.foreignModel = foreignModel;
    }

    public Double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getWorkmanship() {
        return workmanship;
    }

    public void setWorkmanship(String workmanship) {
        this.workmanship = workmanship;
    }

    public Double getContractPrice() {
        return contractPrice;
    }

    public void setContractPrice(Double contractPrice) {
        this.contractPrice = contractPrice;
    }

    public Integer getSizeType() {
        return sizeType;
    }

    public void setSizeType(Integer sizeType) {
        this.sizeType = sizeType;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getBusinessStatus() {
        return businessStatus;
    }

    public void setBusinessStatus(Integer businessStatus) {
        this.businessStatus = businessStatus;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }

    public String getCheckBy() {
        return checkBy;
    }

    public void setCheckBy(String checkBy) {
        this.checkBy = checkBy;
    }

    public Map<String, Integer> getMap() {
        return map;
    }

    public void setMap(Map<String, Integer> map) {
        this.map = map;
    }

    public TryOrder getTryOrder() {
        return tryOrder;
    }

    public void setTryOrder(TryOrder tryOrder) {
        this.tryOrder = tryOrder;
    }

    public Insole getInsole() {
        return insole;
    }

    public void setInsole(Insole insole) {
        this.insole = insole;
    }

    public List<ProductionOrder> getProductionOrder() {
        return productionOrder;
    }

    public void setProductionOrder(List<ProductionOrder> productionOrder) {
        this.productionOrder = productionOrder;
    }

    public List<Contract> getContractList() {
        return contractList;
    }

    public void setContractList(List<Contract> contractList) {
        this.contractList = contractList;
    }
}